package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_IM_MSG"
 *     
*/
public class CcpImMsg implements Serializable {

    /** identifier field */
    private String cimGuid;

    /** nullable persistent field */
    private String cimData;

    /** nullable persistent field */
    private String cimDate;

    /** nullable persistent field */
    private Integer cimDel;

    /** nullable persistent field */
    private String cimResv1;

    /** nullable persistent field */
    private String cimResv2;

    /** nullable persistent field */
    private String cimResv3;

    /** full constructor */
    public CcpImMsg(String cimGuid, String cimData, String cimDate, Integer cimDel, String cimResv1, String cimResv2, String cimResv3) {
        this.cimGuid = cimGuid;
        this.cimData = cimData;
        this.cimDate = cimDate;
        this.cimDel = cimDel;
        this.cimResv1 = cimResv1;
        this.cimResv2 = cimResv2;
        this.cimResv3 = cimResv3;
    }

    /** default constructor */
    public CcpImMsg() {
    }

    /** minimal constructor */
    public CcpImMsg(String cimGuid) {
        this.cimGuid = cimGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CIM_GUID"
     *         
     */
    public String getCimGuid() {
        return this.cimGuid;
    }

    public void setCimGuid(String cimGuid) {
        this.cimGuid = cimGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CIM_DATA"
     *             length="2147483647"
     *         
     */
    public String getCimData() {
        return this.cimData;
    }

    public void setCimData(String cimData) {
        this.cimData = cimData;
    }

    /** 
     *            @hibernate.property
     *             column="CIM_DATE"
     *             length="20"
     *         
     */
    public String getCimDate() {
        return this.cimDate;
    }

    public void setCimDate(String cimDate) {
        this.cimDate = cimDate;
    }

    /** 
     *            @hibernate.property
     *             column="CIM_DEL"
     *             length="4"
     *         
     */
    public Integer getCimDel() {
        return this.cimDel;
    }

    public void setCimDel(Integer cimDel) {
        this.cimDel = cimDel;
    }

    /** 
     *            @hibernate.property
     *             column="CIM_RESV1"
     *             length="50"
     *         
     */
    public String getCimResv1() {
        return this.cimResv1;
    }

    public void setCimResv1(String cimResv1) {
        this.cimResv1 = cimResv1;
    }

    /** 
     *            @hibernate.property
     *             column="CIM_RESV2"
     *             length="100"
     *         
     */
    public String getCimResv2() {
        return this.cimResv2;
    }

    public void setCimResv2(String cimResv2) {
        this.cimResv2 = cimResv2;
    }

    /** 
     *            @hibernate.property
     *             column="CIM_RESV3"
     *             length="150"
     *         
     */
    public String getCimResv3() {
        return this.cimResv3;
    }

    public void setCimResv3(String cimResv3) {
        this.cimResv3 = cimResv3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cimGuid", getCimGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpImMsg) ) return false;
        CcpImMsg castOther = (CcpImMsg) other;
        return new EqualsBuilder()
            .append(this.getCimGuid(), castOther.getCimGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCimGuid())
            .toHashCode();
    }

}
